<div class="p_main">
	<div class="modelName">
		<h1>当前位置：产品列表管理</h1>
	</div>
	<div class="mt10">
		<a id="c_p_c_btn" href="javascript:void(0)">新增产品</a>
	</div>
	<div class="dataList mt10">
		<table class="w">
			<thead>
				<tr>
					<th>产品名称</th>
					<th>创建时间</th>
					<th>前台显示</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				{#foreach from=$dataList key=key item=item#}
					<tr>
						<td class="m_w200">
							{#$item.name#}
						</td>
						<td class="w150 tc">
							{#$item.createTime#}
						</td>
						<td class="w150 tc">
							<input type="checkbox">
							打钩为显示
						</td>
						<td class="w150 tc">
							<a onclick="doAction(this);" href="javascript:void(0)" rel='{#$baseUrl#}productManage/updateInit?id={#$item.id#}'>编辑</a>
							<a onclick="doAction(this);" href="javascript:void(0)" rel='{#$baseUrl#}productManage/delete?id={#$item.id#}'>删除</a>
						</td>
					</tr>
				{#/foreach#}
			</tbody>
		</table>
	</div>
</div>
<script type="text/javascript">
	$("#c_p_c_btn").click(function() {
		loadPage('{#$baseUrl#}productManage/createInit');
	});
	function doAction(elem){
		loadPage(elem.rel);
	}
</script>
		
		


